<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="<c:url value="/statics/css/editFile.css"/>">
    <script src="statics/js/jquery-3.2.1.min.js"></script>
</head>
<body>
    <div id="editDiv2"><%--注意两个单选框的选项的name属性要一样否则可以多选--%>
        <div id="editCell">
            <span><input name="operation" type="radio" value="" />修改单元格:</span><br><br>
            <input class="editParam" type="text" placeholder="行号："><br>
            <input class="editParam" type="text" placeholder="列名："><br>
            <input class="editParam" type="text" placeholder="新值："><br><br>
            <button id="editButton">确认修改</button>    <br><br>

            <span><input name="operation" type="radio" value="">删除(行和列可同时删除):</span><br><br>
            <input id="rowCheckbox" class="editParam" type="checkbox" name="deleteRowOrCol">
            <input id="deleteRowId" class="deleteRowOrCol" type="text" placeholder="行号："><br>
            <input id="colCheckbox" class="editParam" type="checkbox" name="deleteRowOrCol">
            <input id="deleteColId" class="deleteRowOrCol" type="text" placeholder="列名："><br><br>
            <button id="deleteButton">确认删除</button>
        </div>
    </div>
    <script>
        $('#deleteButton').click(function () {
            var boolean=$('#rowCheckbox').is(':checked'); //所有版本:true/false//别忘记冒号
            alert(boolean);
            boolean=$('#colCheckbox').is(':checked'); //所有版本:true/false//别忘记冒号
            alert(boolean);

            var inputValue=$('#deleteRowId').val();
            alert(inputValue);
            var inputValue=$('#deleteColId').val();
            alert(inputValue);
        });

    </script>
</body>
</html>
